package cn.liyicun.cp.cpweb.util;

import cn.hutool.crypto.digest.DigestUtil;
import cn.liyicun.cp.cpweb.error.WorkRunTimeException;

public class MyUtil {

	public static String passwd(String passwd, Long id) {
		return DigestUtil.md5Hex(id + CPConstant.SALT_CODE + passwd);
	}

	public static void error(String msg) {
		throw new WorkRunTimeException(msg);
	}


}
